package com.free.mysql;

import com.free.freemarker.core.SqlBuilder;
import com.free.freemarker.manager.Manager;
import com.free.mysql.config.InitConfigure;
import com.free.mysql.mysql.MySqlBuilder;

/**
 * Created by huanliu on 2017/4/5.
 */
public class Run {

    public static void main(String[] args) throws Exception {
        InitConfigure.build();
        SqlBuilder sqlBuilder = new MySqlBuilder();
        Manager manager = Manager.getInstance(sqlBuilder);
        MyBuilder mybatis = new MyBuilder();
        String str = MyConstant.TABLE_MESSAGE;
        String[] arr = str.split(",");
        for (int i = 0; i < arr.length; i++) {
            String[] t = arr[i].split("\\|");
            manager.builder(mybatis, t[0], t[1]);
        }
    }
}
